package com.snail.billing.util;

import android.content.Context;
import android.content.SharedPreferences;

import com.android.util.BaseConfiguration;

public class BillingConfiguration extends BaseConfiguration {

	public BillingConfiguration(Context context) {
		super(context);
	}

	protected SharedPreferences getSharedPreferences(Context context) {
		return context.getSharedPreferences(context.getPackageName() + ".Billing", Context.MODE_PRIVATE);
	}

	public String getUUID() {
		return getString("uuid", "");
	}

	public void setUUID(String uuid) {
		putString("uuid", uuid, true);
	}

	public String getAccountJson() {
		return getString("account", "");
	}

	public void setAccountJson(String accountJson) {
		putString("account", accountJson, true);
	}
}
